package com.ruoyi.Order.service;

import com.ruoyi.Order.domain.Order;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

/**
 * 订单 服务层
 * 
 * @author ruoyi
 * @date 2019-07-23
 */
public interface IOrderService 
{
	/**
     * 查询订单信息
     * 
     * @param id 订单ID
     * @return 订单信息
     */
	public Order selectOrderById(Integer id);
	
	/**
     * 查询订单列表
     * 
     * @param order 订单信息
     * @return 订单集合
     */
	public List<Order> selectOrderList(Order order);
	
	/**
     * 查询订单商品列表
     * 
     * @param order 订单商品信息
     * @return 订单商品集合
     */
	public List<Order> selectOrderGoodsList(Integer id);
	
	/**
     * 新增订单
     * 
     * @param order 订单信息
     * @return 结果
     */
	public int insertOrder(Order order);
	
	/**
     * 修改订单
     * 
     * @param order 订单信息
     * @return 结果
     */
	public int updateOrder(Order order);
		
	/**
     * 删除订单信息
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	public int deleteOrderByIds(String ids);
	
	
	public int selectCountOnThisDay(String days,int schoolId);
	
	public int selectCountOnThisDayForTUIKUAN(String days,int schoolId);
	
	public int selectCountOnThisMonth(String month,int schoolId);
	
	public int selectCountOnThisMonthForTUIKUAN(String month,int schoolId);
	
	public int selectCountOnThisYear(String year,int schoolId);
	
	public int selectCountOnThisYearForTUIKUAN(String year,int schoolId);
	
	public int selectCountAll(int schoolId);
	
	public int selectVerifyOrderCount(String deptId);
	
	public List<Map<String,Object>> selectCountForInformationMonth(int schoolId,String createDate,int flag);
	
	public List<Map<String,Object>> selectCountForInformationYear(int schoolId,String year,int flag);
	
	public List<Map<String,Object>> selectMoneyForInformationMonth(@Param("schoolId") int schoolId,@Param("createDate") String createDate);
	
	public List<Map<String,Object>> selectMoneyForInformationYear(@Param("schoolId") int schoolId,@Param("year") String year);
	
	public List<Map<String,Object>> selectCountForStoreYear(@Param("deptId") String deptId,@Param("year") String year,@Param("flag") int flag);
	public List<Map<String,Object>> selectMoneyEveryday(@Param("deptId") String deptId);
}
